﻿{include file="public/header" /}
			<form method="post">
				<div class="panel admin-panel">
					<div class="panel-head"><strong>{:lang('currency')['list']}</strong></div>
					<div class="padding border-bottom">
						<script>
						//city 参数和回调
						var pid="{:input('get.pid')}";
						var cid="{:input('get.cid')}";
						var aid="{:input('get.aid')}";
						var selectc=true;
						var selecta=true;
						function select_p(){
							return false;
						}
						function select_c(){
							return false;
						}
						function select_a(){
                            location.href="{:url('/admin/auth')}?pid="+pid+"&cid="+cid+"&aid="+aid;
						}
						</script>
						<input type="button" class="button button-small checkall" name="checkall" checkfor="id" value="{:lang('currency')['all_select']}" />
						<a type="button" class="button button-small border-green" href="edit.html" />{:lang('currency')['add']}</a>
						<a id="select_del" type="button" class="button button-small border-red" href="#" />{:lang('currency')['del']}</a>
						{:lang('label')['select']}{:lang('currency')['city']}:{include file="public/city" /}
						 <!--<a type="button" class="button button border-yellow search" href="#" />{:lang('label')['phone']}{:lang('label')['search']}</a>-->
					</div>
					<table class="table table-hover">
						<tr>
							<th width="60">{:lang('label')['select']}</th>
							<th width="120">{:lang('label')['type']}</th>
							<th width="120">{:lang('label')['username']}</th>
							<th width="200">{:lang('label')['phone']}</th>
							<th width="100">{:lang('label')['handle']}</th>
						</tr>
						{volist name="data" id="auth"}
						<tr>
							<td >
								<input type="checkbox" name="id" value="{$auth.id}" />
							</td>
							<td style="line-height:40px">{if $auth.type=='all'}总管理{elseif $auth.type=='province'}省管理{elseif $auth.type=='city'}市管理{elseif $auth.type=='area'}县管理{/if}</td>
							<td style="line-height:40px">{$auth.username}</td>
							<td style="line-height:40px">{$auth.phone}</td>
							<td style="line-height:40px"><a class="button border-blue button-little" href="edit.html?id={$auth.id}">{:lang('currency')['edit']}</a> <a class="button border-red button-little" href="del?id={$auth.id}&page={:input('get.page')}" onclick="if(confirm('{:lang('currency')['del']}?')){return true;}return false;">{:lang('currency')['del']}</a></td>
						</tr>
						{/volist}
					</table>
					{include file="public/pages" /}
				</div>
			</form>
			<script>
			layer.config({
				extend: 'extend/layer.ext.js'
			});
			$('#select_del').click(function(){
				var str="";
				$("input:checkbox[name=id]:checked").each(function(){
					str+=$(this).val()+",";
				});
				if(str!=''){
					if(confirm("{:lang('currency')['del']}?")){
					    location.href='__URL__/del?id='+str;
					}
				}
			});
			$('.search').click(function(){
				layer.prompt({title:'{:lang('label')['phone']}{:lang('label')['search']}'},function(val){
					location.href="?phone="+val;
				});
			});
			</script>
{include file="public/footer" /}